| Filename | (eval 424)[/Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm:3] | 
| Statements | Executed 280 statements in 1.15ms | 
| Eval Invoked At | /Users/ether/.perlbrew/libs/36.0@std/lib/perl5/Sub/Quote.pm line 3 | 
| Sibling evals | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113 | 
| Calls | P | F | Exclusive Time | Inclusive Time | Subroutine | 
|---|---|---|---|---|---|
| 15 | 3 | 2 | 600µs | 171ms | JSON::Schema::Modern::Document::new | 
| 1 | 1 | 1 | 11µs | 29µs | JSON::Schema::Modern::Document::BEGIN@11.328 | 
| 1 | 1 | 1 | 5µs | 10µs | JSON::Schema::Modern::Document::BEGIN@108 | 
| 1 | 1 | 1 | 5µs | 15µs | JSON::Schema::Modern::Document::BEGIN@74 | 
| 1 | 1 | 1 | 4µs | 13µs | JSON::Schema::Modern::Document::BEGIN@84 | 
| 1 | 1 | 1 | 3µs | 3µs | JSON::Schema::Modern::Document::BEGIN@16.329 | 
| 1 | 1 | 1 | 3µs | 12µs | JSON::Schema::Modern::Document::BEGIN@79 | 
| 1 | 1 | 1 | 3µs | 9µs | JSON::Schema::Modern::Document::BEGIN@87 | 
| Line | State ments | Time on line | Calls | Time in subs | Code | 
|---|---|---|---|---|---|
| 1 | { | ||||
| 2 | 2 | 1µs | my $isa_check_for_errors = ${$_[1]->{"\$isa_check_for_errors"}}; | ||
| 3 | 1 | 0s | my $isa_check_for_evaluator = ${$_[1]->{"\$isa_check_for_evaluator"}}; | ||
| 4 | 1 | 0s | my $coerce_for_metaschema_5furi = ${$_[1]->{"\$coerce_for_metaschema_5furi"}}; | ||
| 5 | 1 | 0s | my $_QUOTED = ${$_[1]->{"\$_QUOTED"}}; | ||
| 6 | 1 | 0s | my $isa_check_for_metaschema_5furi = ${$_[1]->{"\$isa_check_for_metaschema_5furi"}}; | ||
| 7 | 1 | 0s | my $isa_check_for_canonical_5furi = ${$_[1]->{"\$isa_check_for_canonical_5furi"}}; | ||
| 8 | 1 | 0s | my $coerce_for_canonical_5furi = ${$_[1]->{"\$coerce_for_canonical_5furi"}}; | ||
| 9 | 1 | 1µs | my $_UNQUOTED = ${$_[1]->{"\$_UNQUOTED"}}; | ||
| 10 | package JSON::Schema::Modern::Document; | ||||
| 11 | 2 | 42µs | 2 | 47µs | # spent 29µs (11+18) within JSON::Schema::Modern::Document::BEGIN@11.328 which was called:
#    once (11µs+18µs) by Sub::Quote::_clean_eval at line 11   # spent    29µs making 1 call to JSON::Schema::Modern::Document::BEGIN@11.328
  # spent    18µs making 1 call to warnings::unimport | 
| 12 | # spent 171ms (600µs+170) within JSON::Schema::Modern::Document::new which was called 15 times, avg 11.4ms/call:
# 8 times (304µs+59.2ms) by JSON::Schema::Modern::_get_or_load_resource at line 787 of JSON/Schema/Modern.pm, avg 7.44ms/call
# 6 times (251µs+102ms) by JSON::Schema::Modern::add_schema at line 152 of JSON/Schema/Modern.pm, avg 17.1ms/call
#    once (45µs+8.65ms) by JSON::Schema::Modern::add_schema at line 177 of Sub/Defer.pm | ||||
| 13 | ($_QUOTED,$_UNQUOTED) if 0; | ||||
| 14 | # BEGIN quote_sub PRELUDE | ||||
| 15 | package JSON::Schema::Modern::Document; | ||||
| 16 | # spent 3µs within JSON::Schema::Modern::Document::BEGIN@16.329 which was called:
#    once (3µs+0s) by Sub::Quote::_clean_eval at line 21 | ||||
| 17 | 1 | 0s | $^H = 2018; | ||
| 18 | 1 | 0s | ${^WARNING_BITS} = "UUUUUUUUUUUUUUUUUUUU"; | ||
| 19 | 1 | 3µs | %^H = ( | ||
| 20 | ); | ||||
| 21 | 1 | 168µs | 1 | 3µs | } # spent     3µs making 1 call to JSON::Schema::Modern::Document::BEGIN@16.329 | 
| 22 | # END quote_sub PRELUDE | ||||
| 23 | 14 | 10µs | my $invoker = CORE::shift(); | ||
| 24 | 14 | 7µs | my $class = CORE::ref($invoker) ? CORE::ref($invoker) : $invoker; | ||
| 25 | 14 | 7µs | if ($class ne "JSON::Schema::Modern::Document") { | ||
| 26 | if ($Moo::MAKERS{$class}) { | ||||
| 27 | if ($Moo::MAKERS{$class}{constructor}) { | ||||
| 28 | package JSON::Schema::Modern::Document; | ||||
| 29 | return $invoker->SUPER::new(@_); | ||||
| 30 | } | ||||
| 31 | Moo->_constructor_maker_for($class); | ||||
| 32 | return $invoker->new(@_); | ||||
| 33 | } elsif ($INC{"Moose.pm"} and my $meta = Class::MOP::get_metaclass_by_name($class)) { | ||||
| 34 | return $meta->new_object( | ||||
| 35 | $class->can("BUILDARGS") ? $class->BUILDARGS(@_) | ||||
| 36 | : $class->Moo::Object::BUILDARGS(@_) | ||||
| 37 | ); | ||||
| 38 | } | ||||
| 39 | } | ||||
| 40 | my $args = scalar @_ == 1 | ||||
| 41 | ? CORE::ref $_[0] eq 'HASH' | ||||
| 42 | 14 | 78µs | ? { %{ $_[0] } } | ||
| 43 | : Carp::croak("Single parameters to new() must be a HASH ref" | ||||
| 44 | . " data => ". $_[0]) | ||||
| 45 | : @_ % 2 | ||||
| 46 | ? Carp::croak("The new() method for $class expects a hash reference or a" | ||||
| 47 | . " key/value list. You passed an odd number of arguments") | ||||
| 48 | : {@_} | ||||
| 49 | ; | ||||
| 50 | 14 | 27µs | if (my @missing = grep !exists $args->{$_}, "schema") { | ||
| 51 | Carp::croak("Missing required arguments: ".CORE::join(', ', sort @missing)); | ||||
| 52 | } | ||||
| 53 | 14 | 65µs | 28 | 116µs | my $new = $invoker->JSON::Schema::Modern::Document::SUPER::new($class->FOREIGNBUILDARGS(@_));     # spent    96µs making 14 calls to Mojo::JSON::Pointer::new, avg 7µs/call
    # spent    20µs making 14 calls to JSON::Schema::Modern::Document::FOREIGNBUILDARGS, avg 1µs/call | 
| 54 | 6 | 2µs | (exists $args->{"canonical_uri"} and ($new->{"canonical_uri"} = scalar do { my $value = do { | ||
| 55 | 6 | 17µs | local $Method::Generate::Accessor::CurrentAttribute = { | ||
| 56 | init_arg => "canonical_uri", | ||||
| 57 | name => "canonical_uri", | ||||
| 58 | step => "coercion", | ||||
| 59 | }; | ||||
| 60 | 6 | 4µs | (my $_return), | ||
| 61 | (my $_error), (my $_old_error = $@); | ||||
| 62 | 6 | 2µs | (eval { | ||
| 63 | ($@ = $_old_error), | ||||
| 64 | ($_return = | ||||
| 65 | 6 | 19µs | 6 | 111µs | $coerce_for_canonical_5furi->($args->{"canonical_uri"})), # spent   111µs making 6 calls to JSON::Schema::Modern::Document::__ANON__[JSON/Schema/Modern/Document.pm:39], avg 18µs/call | 
| 66 | 1 | ||||
| 67 | } or | ||||
| 68 | $_error = CORE::ref $@ ? $@ : "coercion for \"canonical_uri\" failed: ".$@); | ||||
| 69 | 6 | 2µs | ($@ = $_old_error), | ||
| 70 | (defined $_error and CORE::die $_error); | ||||
| 71 | 6 | 6µs | $_return; | ||
| 72 | } | ||||
| 73 | ; | ||||
| 74 | 32 | 116µs | 20 | 37µs | # spent 15µs (5+10) within JSON::Schema::Modern::Document::BEGIN@74 which was called:
#    once (5µs+10µs) by Sub::Quote::_clean_eval at line 74   # spent    15µs making 1 call to JSON::Schema::Modern::Document::BEGIN@74
  # spent    10µs making 1 call to warnings::unimport
  # spent     6µs making 6 calls to Mojo::URL::fragment, avg 1µs/call
  # spent     4µs making 6 calls to Scalar::Util::blessed, avg 667ns/call
  # spent     2µs making 6 calls to UNIVERSAL::isa, avg 333ns/call | 
| 75 | $value | ||||
| 76 | } | ||||
| 77 | )), | ||||
| 78 | (exists $args->{"errors"} and ($new->{"errors"} = scalar do { my $value = $args->{"errors"}; | ||||
| 79 | 2 | 63µs | 2 | 21µs | # spent 12µs (3+9) within JSON::Schema::Modern::Document::BEGIN@79 which was called:
#    once (3µs+9µs) by Sub::Quote::_clean_eval at line 79   # spent    12µs making 1 call to JSON::Schema::Modern::Document::BEGIN@79
  # spent     9µs making 1 call to warnings::unimport | 
| 80 | $value | ||||
| 81 | } | ||||
| 82 | )), | ||||
| 83 | 28 | 65µs | 14 | 19µs | (exists $args->{"evaluator"} and (do { Scalar::Util::weaken($new->{"evaluator"} = scalar do { my $value = $args->{"evaluator"}; # spent    19µs making 14 calls to Scalar::Util::weaken, avg 1µs/call | 
| 84 | 44 | 142µs | 30 | 57µs | # spent 13µs (4+9) within JSON::Schema::Modern::Document::BEGIN@84 which was called:
#    once (4µs+9µs) by Sub::Quote::_clean_eval at line 84   # spent    18µs making 14 calls to UNIVERSAL::isa, avg 1µs/call
  # spent    17µs making 14 calls to Scalar::Util::blessed, avg 1µs/call
  # spent    13µs making  1 call to JSON::Schema::Modern::Document::BEGIN@84
  # spent     9µs making  1 call to warnings::unimport | 
| 85 | $value | ||||
| 86 | } | ||||
| 87 | 16 | 56µs | 2 | 15µs | # spent 9µs (3+6) within JSON::Schema::Modern::Document::BEGIN@87 which was called:
#    once (3µs+6µs) by Sub::Quote::_clean_eval at line 87 # spent     9µs making 1 call to JSON::Schema::Modern::Document::BEGIN@87
# spent     6µs making 1 call to warnings::unimport | 
| 88 | (exists $args->{"metaschema_uri"} and ($new->{"metaschema_uri"} = scalar do { my $value = do { | ||||
| 89 | local $Method::Generate::Accessor::CurrentAttribute = { | ||||
| 90 | init_arg => "metaschema_uri", | ||||
| 91 | name => "metaschema_uri", | ||||
| 92 | step => "coercion", | ||||
| 93 | }; | ||||
| 94 | (my $_return), | ||||
| 95 | (my $_error), (my $_old_error = $@); | ||||
| 96 | (eval { | ||||
| 97 | ($@ = $_old_error), | ||||
| 98 | ($_return = | ||||
| 99 | $coerce_for_metaschema_5furi->($args->{"metaschema_uri"})), | ||||
| 100 | 1 | ||||
| 101 | } or | ||||
| 102 | $_error = CORE::ref $@ ? $@ : "coercion for \"metaschema_uri\" failed: ".$@); | ||||
| 103 | ($@ = $_old_error), | ||||
| 104 | (defined $_error and CORE::die $_error); | ||||
| 105 | $_return; | ||||
| 106 | } | ||||
| 107 | ; | ||||
| 108 | 2 | 112µs | 2 | 15µs | # spent 10µs (5+5) within JSON::Schema::Modern::Document::BEGIN@108 which was called:
#    once (5µs+5µs) by Sub::Quote::_clean_eval at line 108   # spent    10µs making 1 call to JSON::Schema::Modern::Document::BEGIN@108
  # spent     5µs making 1 call to warnings::unimport | 
| 109 | $value | ||||
| 110 | } | ||||
| 111 | )), | ||||
| 112 | (exists $args->{"schema"} and ($new->{"schema"} = $args->{"schema"})), | ||||
| 113 | (($args)[0]->{__no_BUILD__} or ( | ||||
| 114 | 14 | 135µs | 14 | 0s | $new->JSON::Schema::Modern::Document::BUILD($args),       # spent   168ms making 14 calls to JSON::Schema::Modern::Document::BUILD, avg 12.0ms/call, recursion: max depth 1, sum of overlapping time 168ms | 
| 115 | )), | ||||
| 116 | return $new; | ||||
| 117 | } | ||||
| 118 | 1 | 0s | $$_UNQUOTED = \&new; | ||
| 119 | } | ||||
| 120 | 1 | 5µs | 1; | ||
| 121 | |||||
| 122 | ; |